package com.study.equ;

import org.junit.jupiter.api.Test;

/**
 * @author zhuzi
 * 2025/1/15 10:31
 */
public class RfidDemo {

    @Test
    public void rfid01() {
        String info = "A0 25 01 81 00 01 1C 34 00 30 08 33 B2 DD D9 01 40 00 00 00 00 C4 1E E2 80 11 05 20 00 77 86 2F 66 09 7F 0C EC 01 C7";

        info = info.replace(" ", "");
        String[] split = info.split("A025");
        for (String s : split) {
            if (s.length() > 62) {
                String rfid = s.substring(42, 66);
                System.out.println("卡号是" + rfid);
            }
        }
    }
}
